package com.cherrypt.api.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import com.cherrypt.api.core.dao.LogDao;
import com.cherrypt.api.model.dataobject.Log;
import com.cherrypt.api.core.service.LogService;
import org.springframework.stereotype.Service;

/**
 * @author intent
 * @date 2019/7/22 22:24
 * @about <link href='http://zzyitj.xyz/'/>
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogDao, Log> implements LogService {
    @Override
    public boolean saveLog(Log log) {
        return SqlHelper.retBool(this.baseMapper.insertLog(log));
    }
}
